package com.company;

import java.io.*;

/**
 * Created by asus on 2017/8/25.
 */
public class TestEOF {
    public static void main(String[] args) throws IOException {
        DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream("D:\\test.txt")));
        while(in.available() != 0){
            System.out.println((char)in.readByte());
        }
    }

}
